package io.renren.service;

import io.renren.entity.CustomBaseinfoEntity;

import java.util.List;
import java.util.Map;

/**
 * 客户主数据
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-06-15 20:58:29
 */
public interface CustomBaseinfoService {
	
	CustomBaseinfoEntity queryObject(String unitId);
	
	List<CustomBaseinfoEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(CustomBaseinfoEntity customBaseinfo);
	
	void update(CustomBaseinfoEntity customBaseinfo);
	
	void delete(String unitId);
	
	void deleteBatch(String[] unitIds);

	void startSynToB1() throws Exception;

	List<CustomBaseinfoEntity> getTree();

	Map<String, Object> getListinfo();

}
